<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title>管理中心 - Powered By 暂停的故事（www.betou.net）</title>
<meta name="Author" content="暂停的故事 叶装装" />
<meta name="Copyright" content="暂停的故事" />
<#include "/betou_sys/head.html"/>
<style type="text/css">        
*{margin:0;padding:0}
html{height:100%;overflow:hidden;}
body{height:100%;}
</style>

<script type="text/javascript">
function g(o){
	return document.getElementById(o);
}
function countUnreadMsg(){
	 $.post("message/v_countUnreadMsg.do", {
		}, function(data) {
			if(data.result){
				 $("#countDiv").html(""+data.count+"");
			}else{
				alert("<@s.m 'cmsMessage.noLogin'/>");
			}
		}, "json");
	 setTimeout( "countUnreadMsg() ",1000*60*10);    
}
$(function(){
	countUnreadMsg();
	$("#menuUL > .menuItem ").click(function(){
		$('.current').removeClass('current');
		$(this).addClass('current');
	});
	$('#menuUL > li').eq(0).addClass('current');
	
});
setTimeout( "countUnreadMsg() ",1000*60*10); 
function mapDialog(){
	var result=window.showModalDialog("map.do","","dialogHeight:600px;dialogWidth:800px;center:yes;resizable: yes;");
	if(result!=null){
		var href=result.split(";")[0];
		var target=result.split(";")[1];
		if(target=="rightFrame"){
				window.parent.mainFrame.document.getElementById(target).src=href;
				var rightFrameSrc=window.parent.mainFrame.document.getElementById(target).src;
				 if(rightFrameSrc.indexOf("frame")>=0){
					window.parent.mainFrame.document.getElementById(target).src=rightFrameSrc.split("frame/")[0]+rightFrameSrc.split("frame/")[1];
					}
			}
		else {
			 	window.parent.document.getElementById(target).src=href;
			}
		}
}
</script>
</head>

<body class="header">

	<div class="body">
		<div class="bodyLeft">
			<div class="logo"></div>
		</div>
		<div class="bodyRight">
			<div class="link">
				<span class="welcome">
					<@s.ma code="global.admin.welcome" args=[user.username]/>
				</span>
				<a href="main.do" >后台首页</a>|
            	<a href="http://www.betou.net/about.jhtml" target="_blank">技术支持</a>|
                <a href="http://www.betou.net/about.jhtml" target="_blank">关于我们</a>|
                <a href="http://www.betou.net/about.jhtml" target="_blank">联系我们</a>|
                <a href="#" onclick="mapDialog()">网站地图</a>
			</div>
			<div id="menu" class="menu">
				<ul id="menuUL">
					<li class="menuItem" ><a href="main.do" target="mainFrame"><@s.m "global.admin.home"/></a></li>
					<@cms_perm url="/frame/channel_main.do">			
					<li class="menuItem"><a href="frame/channel_main.do" target="mainFrame"><@s.m "cms.function.channel"/></a></li>
					</@cms_perm>
					<@cms_perm url="/frame/content_main.do">
					<li class="menuItem"><a href="frame/content_main.do" target="mainFrame"><@s.m "cms.function.content"/></a></li>
					</@cms_perm>
					<@cms_perm url="/frame/template_main.do">
					<li class="menuItem" ><a href="frame/template_main.do" target="mainFrame"><@s.m "cms.function.template"/></a></li>
					</@cms_perm>
					<@cms_perm url="/frame/resource_main.do">
					<li class="menuItem" ><a href="frame/resource_main.do" target="mainFrame"><@s.m "cms.function.resource"/></a></li>
					</@cms_perm>
					<@cms_perm url="/frame/assistant_main.do">
					<li class="menuItem" >
							<a href="frame/assistant_main.do" target="mainFrame">
								<@s.m "cms.function.assistant"/>
								<@cms_perm url="/frame/maintain_main.do">
								&nbsp;<@s.m "cms.function.maintain"/>
								</@cms_perm>
							</a>
					</li>
					</@cms_perm>

					<@cms_perm url="/frame/user_main.do">
					<li class="menuItem" >
					<a href="frame/user_main.do" target="mainFrame">
						<@s.m "cms.function.user"/>
						<@cms_perm url="/frame/generate_main.do">
						&nbsp;<@s.m "cms.function.generate"/>
						</@cms_perm>
						
					</a></li>
					</@cms_perm>
<!--					<@cms_perm url="/frame/generate_main.do">-->
<!--					<li class="menuItem" ><a href="frame/generate_main.do" target="mainFrame"><@s.m "cms.function.generate"/></a></li>-->
<!--					</@cms_perm>-->
					<!--	<@cms_perm url="/frame/maintain_main.do">-->
<!--					<li class="menuItem" ><a href="frame/maintain_main.do" target="mainFrame"><@s.m "cms.function.maintain"/></a></li>-->
<!--					</@cms_perm>-->
<!--					<@cms_perm url="/frame/config_main.do">-->
<!--					<li class="menuItem" ><a href="frame/config_main.do" target="mainFrame"><@s.m "cms.function.config"/></a></li>-->
<!--					</@cms_perm>-->
					<li class="home">
						<a id="view_index" href="${site.url}" target="_blank" hidefocus=""><@s.m "global.admin.viewFrontIndex"/></a>
					</li>
	            </ul>
	            <div class="info">
	            	<a href="message/v_list.do" target="rightFrame" class="unreadmsg"><span id="countDiv"></span>条信息未读</a>
					<a class="profile" href="personal/v_profile.do" target="rightFrame"><@s.m "cmsPersonal.function"/></a>
					<a class="logout" href="logout.do?returnUrl=index.do" target="_top" ><@s.m "global.admin.logout"/></a>
				</div>
			</div>
		</div>
	</div>
</body>
</html>